package com.cw.spider.parse.xinhua;

import cn.wanghaomiao.seimi.annotation.Crawler;
import cn.wanghaomiao.seimi.http.SeimiHttpType;
import cn.wanghaomiao.seimi.struct.Response;
import com.cw.spider.parse.AbstractCrawler;
import com.cw.spider.queue.Myqueue;
import com.cw.spider.service.NewService;
import org.seimicrawler.xpath.JXDocument;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 描述:
 *
 * @author withqianqian@163.com
 * @create 2020-09-01 16:04
 */
@Crawler(name = "xin_hua_index_basic", httpType = SeimiHttpType.OK_HTTP3, delay = 1,
        httpTimeOut = 3000, queue = Myqueue.class)
public class XinHuaIndexCrawler extends AbstractCrawler {
    @Autowired
    NewService newService;

    @Override
    public void start(Response response) {
        getXinHuaArticle(response, newService);

    }
}
